package org.sean.contactdemo.domain;

import java.io.Serializable;

import org.eclipse.core.runtime.IAdaptable;

public class Group implements IAdaptable, Serializable {

	private int groupId;
	private int userId;
	private String groupName;
	private boolean isDefault;

	public Group() {
	}

	
	public Group(int userId) {
		this.userId = userId;
		this.groupName = "Defalut Group";
		this.isDefault = false;
	}
	
	public Group(int userId, String groupName) {
		this.userId = userId;
		this.groupName = groupName;
		this.isDefault = false;
	}

	public Group(int userId, String groupName, boolean isDefault) {
		this.userId = userId;
		this.groupName = groupName;
		this.isDefault = isDefault;
	}

	@Override
	public Object getAdapter(Class adapter) {
		// TODO Auto-generated method stub
		return null;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public boolean isDefault() {
		return isDefault;
	}

	public void setDefault(boolean isDefault) {
		this.isDefault = isDefault;
	}

	public int getGroupId() {
		return groupId;
	}
	
	public void setGroupId(int groupId) {
		this.groupId = groupId;
	}
}
